<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserVipInfo extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'user_id',
        'vip_base_info_id',
        'vip_name',
        'privilege_str',
        'homework_help_discount',
        'algorithm_sources_discount',
        'resource_discount',
        'is_exempt_ads',
        'start_date',
        'expire_date',
    ];

    public $timestamps = true;

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
